<div class="imports index">
	<h2><?php __('Mẫu tin đã import từ file excel');?></h2>
    <b>Hiện có <?php echo count($imports);?> mẩu tin</b><br /><br />
    <?php echo $this->Html->link(__('Lưu vào CSDL', true), array('action' => 'import')); ?></li>
	<table cellpadding="0" cellspacing="0" id="tables">
	<tr><?php foreach ($head as $h):?>
			<th><?php echo $h;?></th>
			<?php endforeach;?>
			<th class="actions"><?php __('Lựa chọn');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($imports as $import):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
        <?php for($index=1;$index<$columns;$index++):?>
		<td><?php echo $import['imports'][$index]; ?>&nbsp;</td>
        <?php endfor; ?>
		<td class="actions">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $import['imports']['id'])); ?>
			<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $import['imports']['id'])); ?>
			<?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $import['imports']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $import['imports']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
</div>

